Skip to content

Add Russian (ru) locale#2

Open
amnesiaof wants to merge 2 commits into
nh6574:mainfrom
amnesiaof:ru-locale
Open

Add Russian (ru) locale#2
amnesiaof wants to merge 2 commits into
nh6574:mainfrom
amnesiaof:ru-locale

Conversation

@amnesiaof
Copy link
Copy Markdown

@amnesiaof amnesiaof commented May 20, 2026

Adds a complete Russian translation for the PlayLog UI, themes, log types, groups, and logging messages.

Changes:

  • localization/ru.lua — full Russian locale file (~230 entries)
  • src/ui.lua — font fix: PlayLog now loads the language-specific font (e.g. NotoSans-Bold for Russian) at the correct size (render_scale x FONTSCALE) and sets it before drawing/measuring text, so Cyrillic characters render properly and button labels don't overflow

Why the font fix was needed:
PlayLog used love.graphics.getFont() which returned the default Love2D font (m6x11plus.ttf, no Cyrillic). Balatro itself uses G.LANG.font.FONT (e.g. NotoSans-Bold for Russian) but never sets it as the active Love2D font — it passes it directly to DynaText/UIBox classes. The fix loads the same language .ttf file at the correct point size and applies it before all PlayLog draw/measure calls.

Short button labels kept in English:
LOG, CFG, CPY, BACK, OK, COPIED remain in English in the Russian locale because the translated versions overflowed the small UI buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant